package com.techsoul.module.system.config;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Data
@Accessors(chain = true)
@Component
@ConfigurationProperties(prefix = "wxpay")
//@PropertySource(value = {"classpath:wxpay.yml"})
public class WxpayProperties {

    /**
     * 小程序ID
     */
    private String appid;

    /**
     * 小程序密钥
     */
    private String appsecret;

    /**
     * 商户ID
     */
    private String mchid;

    /**
     * 支付签名Key
     */
    private String paySignKey;

    /**
     * 支付回调地址
     */
    private String payNotifyUrl;

    /**
     * 退款回调地址
     */
    private String refundNotifyUrl;

}
